const express = require('express');
const router = express.Router();
const cityController = require('../controllers/cityController');
const authMiddleware = require('../middleware/authMiddleware');

router.post('/', authMiddleware, cityController.addCity);
router.get('/', cityController.getAllCities);
router.get('/by-coordinates', cityController.getCityByCoordinates);
router.get('/by-name', cityController.searchCityByName);

module.exports = router;